package com.sun.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sun.dto.OutstoreDto;
import com.sun.entity.Outstore;
import org.springframework.transaction.annotation.Transactional;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @Project: hospitalDrugInformationManagement
 * @Author: 86178
 * @Date: 2023/3/21 15:23
 * @FileName: OutstoreService
 * @Description: ""
 */
public interface OutstoreService extends IService<Outstore> {
    @Transactional
    void saveWithOutstoreDetail(OutstoreDto outstoreDto);

    @Transactional
    void updateWithOutstoreDetail(OutstoreDto outstoreDto);

    IPage<OutstoreDto> selectOutstoreDtoListPage(Page<OutstoreDto> pageInfo, String userName, String addr, LocalDateTime startTime, LocalDateTime endTime);

    OutstoreDto getByIdWithOutstoreDetail(Long id);

    @Transactional
    void batchDeleteByIds(List<Long> ids);
}
